package exception;

import java.util.Iterator;

public class FinallyDemo {
    public static void main(String[] args) {
        System.out.println("开始了");
        try {
            String s = null;
            System.out.println(s.length());
            return;
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            System.out.println("finally");
        }

        System.out.println("endEnd");


    }
}
